package com.rest.ribbon.springcloudribbon.controller;

import com.rest.ribbon.springcloudribbon.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: TODO
 * @date 2018/3/9 13:25
 */
@RestController
public class HelloControler {

    @Autowired
    HelloService helloService;


    @GetMapping(value = "/hi")
    public String hi(@RequestParam String name){
        return helloService.hiService(name);
    }
}
